<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>投诉与建议</title>
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/all.css"/>
    
  </head>
  <body>
    <style type="text/css">
      .container{ padding-top: 15px;}
      .col-xs-3{ padding-right: 0; padding-top: 6px;}
      .col-xs-1{ color: red; padding-left: 0; padding-top: 6px;}
      .zitil{text-align: right;}
      .zitir{color: #cdcdcd;}
    </style>
    <div class="alltop">
      <div class="backone2">
<a href="javascript:;" class="returna"><span class="glyphicon glyphicon-menu-left"></span><b>返回</b></a>
      </div>
      <div class="refresh">
      <a href="">
        <span class="glyphicon glyphicon-refresh"></span><b>刷新</b></a>
      </div>
    </div>  
    <div class="container">
        <textarea class="col-xs-12 yijian" placeholder="请告诉我们您的建议和意见！" rows="7" style="background-color: #fbf5f5;"></textarea>
        <div class="text-right" style="margin: 10px 5px;">1000字以内</div>
        <div class="col-xs-6 zitil">聚贤联系电话</div><div class="col-xs-6 zitir">4000999091</div>
        <div class="col-xs-6 zitil">聚贤邮箱地址</div><div class="col-xs-6 zitir">zhuojuxian@zjxhr.com</div>

    </div>
  
    <div class="row" style="padding: 0; margin: 0;">
      <div class="col-xs-6 col-xs-offset-3" style="margin-top: 15px; ">
        <button class="btn btn-default btn-block tijiao" style="background: #ffa328; color: #FFFFFF;">提交</button>
      </div>
    </div>
  
    <script src="../lib/soha.js" type="text/javascript"></script>
    <script type="text/javascript" src="../lib/jquery.min.js"></script>
    <script type="text/javascript" src="../lib/bootstrap.min.js"></script>
    <script type="text/javascript" src="../lib/vue.min.js"></script>
    <script type="text/javascript" src="../lib/common.js"></script>

    <script src="js/peizhi.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
      var b = new Base64(); //加密
        query = ''+getUrlQuery().userid;
        if (query == "undefined") {
                query = "zero0";
            }else{
                userid = b.decode(query); //解密urlid
              }
    var myDate = new Date();
    var date = _dateFormat(myDate, 'yyyy-MM-dd');

      $(".tijiao").click(function(){
        var Complaint = $(".yijian").val();

         postJSON('/api/feedback', { 
                                       "accountid": parseInt(userid),  
                                       
                                       "content": Complaint,
                                       "Type": 1,
                                       // "withdrawalamount": parseInt(Amount),
                                       "date": date,
                                       
        }, function (result) {
             alert("提交成功，感谢您的支持！");
              window.location.href='member.html?userid='+query;
            
        }, function (result) {

        });
        
      })
      
    </script>
  </body>
</html>
